# -*- coding: utf-8 -*-
__author__ = 'Gui'
'''
@Time    : 2022/6/5 18:21
@Author  : Gui
@File    : fira_view_network.py
@Software: PyCharm
'''

# import tensorflow as tf
#
#
# g = tf.Graph()
# with g.as_default() as g:
#     tf.train.import_meta_graph('-82.meta')
#
# with tf.Session(graph=g) as sess:
#     file_writer = tf.summary.FileWriter(logdir='-82', graph=g)

# ckpt_path = '-82'
#
# saver = tf.train.import_meta_graph(ckpt_path + '.meta', clear_devices=True)
# graph = tf.get_default_graph()
# with tf.Session(graph=graph) as sess:
#     sess.run(tf.global_variables_initializer())
#     saver.restore(sess, ckpt_path)

import tensorflow as tf
from tensorflow.python.platform import gfile

graph = tf.get_default_graph()
graphdef = graph.as_graph_def()
_ = tf.train.import_meta_graph('-82.meta')
summary = tf.summary.FileWriter('summary的路径', graph)




